<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/static/dist/img/default-user.png" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>${Session.session_admin_user['username']}</p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <!-- search form -->
      <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">导航栏</li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-dashboard"></i> <span>商家管理</span> <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li class="active"><a href="/manager/${sys}/go/storeList"><i class="fa fa-circle-o"></i>商家列表</a></li>
            <li><a href="/manager/${sys}/go/goodsList"><i class="fa fa-anchor"></i>商品列表</a></li>
            <li><a href="/manager/${sys}/go/commentList"><i class="fa fa-adjust"></i>评价管理</a></li>
            <li><a href="/manager/${sys}/go/storeCateList"><i class="fa fa-arrows"></i>商家分类</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-files-o"></i>
            <span>活动管理</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
          	<li><a href="/manager/${sys}/go/recommendCateList"><i class="fa fa-arrows-h"></i> 推荐分类</a></li>
            <li><a href="/manager/${sys}/go/indexActList"><i class="fa fa-asterisk"></i> 首页活动</a></li>
            <li><a href="/manager/${sys}/go/actGoodsList"><i class="fa fa-bar-chart"></i> 活动商品审核</a></li>
            <li><a href="/manager/${sys}/go/actStoreList"><i class="fa fa-black-tie"></i> 活动商家审核</a></li>
            <li><a href="/manager/${sys}/go/quickList"><i class="fa fa-fw fa-houzz"></i> 抢购审核</a></li>
            <li><a href="/manager/${sys}/go/couponList"><i class="fa fa-building"></i> 优惠券管理</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-pie-chart"></i>
            <span>订单管理</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="/manager/${sys}/go/orderList"><i class="fa fa-bullseye"></i> 订单管理</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-edit"></i> <span>用户管理</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="/manager/${sys}/go/userList"><i class="fa fa-child"></i> 用户管理</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-table"></i> <span>积分管理</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li><a href="/manager/${sys}/go/creditGoodsList"><i class="fa fa-camera-retro"></i> 积分商品</a></li>
            <li><a href="/manager/${sys}/go/creditCateList"><i class="fa fa-compass"></i> 积分分类</a></li>
            <li><a href="/manager/${sys}/go/changeLogList"><i class="fa fa-feed"></i> 兑奖记录</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-laptop"></i>
            <span>系统管理</span>
            <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
          	<li><a href="/manager/${sys}/go/focusList?location=1"><i class="fa fa-cloud-upload"></i> 焦点图管理</a></li>
            <li><a href="/manager/${sys}/go/cityList"><i class="fa fa-file-audio-o"></i> 城市管理</a></li>
            <li><a href="/manager/${sys}/go/codeList"><i class="fa fa-cogs"></i> 基础参数</a></li>
            <li><a href="/manager/${sys}/go/agentList"><i class="fa fa-mouse-pointer"></i> 城市代理</a></li>
            <li><a href="/manager/${sys}/go/notifyList"><i class="fa fa-exclamation"></i> 消息通知</a></li>
            <li><a href="/manager/${sys}/go/push"><i class="fa fa-file-picture-o"></i> 消息推送</a></li>
            <li><a href="/manager/${sys}/go/feedBack"><i class="fa fa-cubes"></i> 用户反馈</a></li>
          </ul>
        </li>
        
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
  <script>
	  	var sys = "${sys}";
		var path = "";
		<#if path??>
			path = "${path}";
		</#if>
		var p = "/manager/"+sys+"/go/"+path;
		window.onload=function(){
			$.each($('.treeview-menu').find('li'),function(o,v){
				v = $(v);
				if(v.find('a').attr('href')==p){
					v.addClass('active');
					v.parent().parent().addClass('active');
				}else{
					v.removeClass('active');
				}
				
			});
		};
		
  </script>
